package com.tyf.feign.controller;

import com.tyf.common.utils.R;
import com.tyf.dubbo.model.Student;
import com.tyf.feign.service.FeignStudentService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/feignStudent")
public class FeignStudentController {

    @Resource
    FeignStudentService studentService;

    @RequestMapping("getStudentList")
    public R getStudentList() {
        List<Student> studentList = studentService.getStudentList();
        return R.ok();
    }


}
